Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --no-workspace and --no-project in lieu of --isolated #5465

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Jul 26, 2024

Summary

Right now, --isolated is read from uv run and uv init to avoid discovering the current workspace (or project). This PR moves that behavior to a dedicated --no-workspace flag for uv init, and --no-project for uv run. They could use the same flag, but --no-project feels confusing for uv init, and --no-workspace seems confusing for uv run (especially so once you read the documentation, where we refer to the thing you're omitting as the project).

Closes #5429.

@charliermarsh charliermarsh marked this pull request as ready for review July 26, 2024 00:10
@charliermarsh charliermarsh added cli Related to the command line interface preview Experimental behavior labels Jul 26, 2024
@charliermarsh charliermarsh force-pushed the charlie/no-project branch 3 times, most recently from 678c065 to 9910684 Compare July 29, 2024 13:49
@charliermarsh charliermarsh changed the title Add --no-workspace in lieu of --isolated Add --no-workspace and --no-project in lieu of --isolated Jul 29, 2024
@charliermarsh charliermarsh changed the title Add --no-workspace and --no-project in lieu of --isolated Add --no-workspace in lieu of --isolated Jul 29, 2024
@charliermarsh charliermarsh changed the title Add --no-workspace in lieu of --isolated Add --no-workspace and --no-project in lieu of --isolated Jul 29, 2024
@charliermarsh charliermarsh merged commit f1b3d2e into main Jul 30, 2024
57 checks passed
@charliermarsh charliermarsh deleted the charlie/no-project branch July 30, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command line interface preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add --no-project to uv run
3 participants